<template>
  <div id="database">
    <el-card class="box-card">
      <div slot="header" class="clearfix">
        <span>所有数据库</span>

     <!-- <download-excel
             :data   = "json_data"
             :fields = "json_fields"
             type    = "csv"
             worksheet = "My Worksheet"
             name    = "信息.xls">
        <el-button style="float: right; margin-right: 10%" type="text"
          >导出Excel</el-button>
     </download-excel> -->
        
        <div>
          <el-input
            type="textarea"
            autosize
            placeholder="请输入内容"
            v-model="all"
          >
          </el-input>
        </div>
      </div>
    </el-card>
  </div>
</template>

<script>

export default {
  name: "database",
  data() {
    return {
      admin: [],
      checkList: [],
      college: [],
      libraryList: [],
      markSpeak: [],
      notice: [],
      reserList: [],
      resetUserInfo: [],
      systemSms: [],
      tokenList: [],
      user: [],
      userSmsList: [],
      violationList: [],
      all: [],
    };
  },
  mounted() {
    let dataSTR = [
      "http://localhost:4578/all_json/admin",
      "http://localhost:4578/all_json/checkList",
      "http://localhost:4578/all_json/college",
      "http://localhost:4578/all_json/libraryList",
      "http://localhost:4578/all_json/markSpeak",
      "http://localhost:4578/all_json/notice",
      "http://localhost:4578/all_json/reserList",
      "http://localhost:4578/all_json/resetUserInfo",
      "http://localhost:4578/all_json/systemSms",
      "http://localhost:4578/all_json/tokenList",
      "http://localhost:4578/all_json/user",
      "http://localhost:4578/all_json/userSmsList",
      "http://localhost:4578/all_json/violationList",
    ];
    for (var i = 0; i < dataSTR.length; i++) {
      this.axios.post(dataSTR[i], {}).then((ret) => {
        this.all.push(ret.data);
      });
    }
  },
};
</script>
<style scoped lang="less">
.el-row {
  margin-bottom: 20px;
  &:last-child {
    margin-bottom: 0;
  }
}
.el-col {
  border-radius: 4px;
}
.bg-purple-dark {
  background: #99a9bf;
}
.bg-purple {
  background: #d3dce6;
}
.bg-purple-light {
  background: #e5e9f2;
}
.grid-content {
  border-radius: 4px;
  min-height: 36px;
}
.row-bg {
  padding: 10px 0;
  background-color: #f9fafc;
}
</style>